package text;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;


public class Text_study2 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis = new FileInputStream("C:\\Users\\啦啦啦\\Desktop\\User.txt");
        ObjectInputStream ois = new ObjectInputStream(fis);
        Object o = ois.readObject();
        //使用ois中的方法读取保存的对象
        ois.close();
        System.out.println(o);
        //将o打印出来
    }
}
